package com.wj.domain.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @description 我的书架
 * @author wj
 * @date 2022-05-11
 */
@Entity
@Table(name="book_shelf")
public class BookShelfEntity {

    /**
    * id
    */
    private Long id;

    /**
    * book_id
    */
    private Long bookId;

    /**
    * sort
    */
    private Integer sort;

    /**
    * user_id
    */
    private Long userId;

    @Id
    @Column(name="id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name="book_id")
    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    @Column(name="sort")
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Column(name="user_id")
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }


}